<template>
  <div style="padding:20px">
    <el-card>
      <el-tabs v-model="activeName" type="card">
        <el-tab-pane label="登录账户管理" name="first">
          <el-form label-width="100px" style="width:400px">
            <el-form-item label="姓名：">
              <el-input />
            </el-form-item>
            <el-form-item label="密码：">
              <el-input />
            </el-form-item>
            <el-form-item>
              <el-button type="primary">更新</el-button>
            </el-form-item>
          </el-form>
        </el-tab-pane>
        <el-tab-pane label="个人详情" name="second">
          <UserInfo />
        </el-tab-pane>
        <el-tab-pane label="岗位信息" name="third">
          <JobInfo />
        </el-tab-pane>
      </el-tabs>
    </el-card>
  </div>
</template>

<script>
import JobInfo from './components/job-info'
import UserInfo from './components/user-info'
export default {
  name: '',
  components: {
    UserInfo,
    JobInfo
  },
  props: {
    id: {
      type: [Number, String],
      required: true
    }
  },
  data() {
    return {
      activeName: 'first'// 默认显示第一个
    }
  },
  computed: {},
  watch: {},
  created() {},
  methods: {}
}
</script>

<style scoped lang='scss'>

</style>
